import * as echarts from 'echarts';

export default {
	newChart(div) {
		return echarts.init(div.value, 'dark', {
			renderer: 'svg',
		});
	},
	handleChart(option) {
		option.backgroundColor = 'transparent';
		return option;
	},
};